public class HF_ClientWSSearch {

public List<WebServiceFinal2.SearchContactWrapper> Searchcontactinpims(String firstname,String lastname,String email,String phone,String streetaddress,String city,String zipcode,String country,String state){
 //system.debug('searchDetails####'+searchDetails);
   WebServiceFinal4.BasicEndpoint pims = new  WebServiceFinal4.BasicEndpoint();
   WebServiceFinal2.ArrayOfSearchContactWrapper arrayofSearchcontactWrapper = new WebServiceFinal2.ArrayOfSearchContactWrapper();
   WebServiceFinal2.SearchContactWrapper searchContactwrapper = new WebServiceFinal2.SearchContactWrapper();
   List<WebServiceFinal2.SearchContactWrapper> searchContactWrapperResult = new List<WebServiceFinal2.SearchContactWrapper>();
     pims.timeout_x=60000;
     /*searchContactwrapper.City = searchDetails.city;
     searchContactwrapper.Country = searchDetails.country;
     searchContactwrapper.Email = searchDetails.email;
     searchContactwrapper.FirstName = searchDetails.firstname;
     searchContactwrapper.LastName = searchDetails.lastname;
     searchContactwrapper.Phone = searchDetails.phone;
     searchContactwrapper.State = searchDetails.state;
     searchContactwrapper.StreetAddress = searchDetails.StreetAddress;
     searchContactwrapper.ZipCode = searchDetails.zipcode;
     */
     searchContactwrapper.City =city;
     searchContactwrapper.Country =country;
     searchContactwrapper.Email = email;
     searchContactwrapper.FirstName = firstname;
     searchContactwrapper.LastName = lastname;
     searchContactwrapper.Phone = phone;
     searchContactwrapper.State = state;
     searchContactwrapper.StreetAddress = streetaddress;
     searchContactwrapper.ZipCode = zipcode;
     
    system.debug('searchContactwrapper####'+searchContactwrapper);
     arrayofSearchcontactWrapper = pims.SearchContact(searchContactwrapper);
     searchContactWrapperResult = arrayofSearchcontactWrapper.SearchContactWrapper;
      system.debug('searchDetails####'+searchContactWrapperResult );
     //for(WebServiceFinal2.SearchContactWrapper searchresultid : searchContactWrapperResult){
               //         sfdcpartnerid.add(searchresultid.PartnerID);
                 //  } 
     return searchContactWrapperResult;
   
    }
 
          
      
          
}